package jmine.tec.services.test.services.validar;

import jmine.tec.datadigester.positional.annotations.PositionalFileLayout;
import jmine.tec.datadigester.positional.annotations.PositionalIntEntry;
import jmine.tec.datadigester.positional.annotations.PositionalLongEntry;
import jmine.tec.datadigester.positional.annotations.PositionalStringEntry;

/**
 * @author seiti
 * Jun 30, 2012
 */
@PositionalFileLayout
public class PositionalTestBean {

    public final static String NOME = "NOME";

    public final static String INTEIRO = "INTEIRO";

    public final static String LONG = "LONG";
    
    private String string;
    
    private Integer integer;

    private Long along;
    
    public String getString() {
        return this.string;
    }
    
    @PositionalStringEntry(description = NOME, start = 0, size = 5)
    public void setString(String string) {
        this.string = string;
    }
       
    public int getInt() {
        return this.integer;
    }
    
    @PositionalIntEntry(description = INTEIRO, start = 5, size = 3)
    public void setInt(int integer) {
        this.integer = integer;
    }
    
    public Long getLong() {
        return this.along;
    }

    @PositionalLongEntry(description = LONG, start = 8, size = 4)
    public void setLong(long along) {
        this.along = along;
    }
}
